Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly classify the files and directories that pass to watcher #37102

Merged
merged 1 commit into from
Sep 2, 2019

Conversation

y-yagi
Copy link
Member

@y-yagi y-yagi commented Sep 1, 2019

Currently, autoload paths pass to the watcher as directories. If using evented watcher, this possibly pass as it is to Listen.
But autoload paths include files and Listen raise an error when was passed file. So, it is necessary to classify files and directories correctly.

Fixes #37011.

@rails-bot rails-bot bot added the railties label Sep 1, 2019
Currently, autoload paths pass to the watcher as directories. If using evented
watcher, this possibly pass as it is to `Listen`.
But autoload paths include files and `Listen` raise an error when was passed
file. So, it is necessary to classify files and directories correctly.

Fixes rails#37011.
@y-yagi y-yagi merged commit ef4bf83 into rails:master Sep 2, 2019
@y-yagi y-yagi deleted the fixes_37011 branch September 2, 2019 22:57
y-yagi added a commit that referenced this pull request Sep 2, 2019
Correctly classify the files and directories that pass to watcher
suketa added a commit to suketa/rails_sandbox that referenced this pull request Mar 6, 2020
Correctly classify the files and directories that pass to watcher #37102
rails/rails#37102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not a directory error on Linux in development (eager_loading issue)
1 participant